<template>
  <div>
    <h1>文章更新{{ id }}</h1>
    <h3>{{ $route.query.uname }}</h3>
    <h4>
      <input type="button" value="完成跳转" @click="linkTo">
    </h4>
  </div>
</template>

<script>
export default {
  props: ['id'],
  methods: {
    linkTo () {
      const c = confirm('是否要跳转到栏目页面?')
      if (c) {
        this.$router.push('/column')
      }
    }
  },
  mounted () {
    console.log(this.$route.query.uname)
  }
}
</script>
